package com.sjh.test.java8.time;

import java.time.LocalDate;
import java.time.LocalTime;
import java.time.Month;

public class LocalDateTimeTest5 {

    public static void main(String args[]) {
        LocalDateTimeTest5 tester = new LocalDateTimeTest5();
        tester.run();
    }

    public void run() {

        // 2018-10-01
        LocalDate date = LocalDate.of(2018, Month.OCTOBER, 01);
        System.out.println("日期是: " + date);

        // 22:15
        LocalTime time = LocalTime.of(22, 15);
        System.out.println("时间是: " + time);
    }
}
